-- GENERATED SPELL FOR [Hatefury Shadowstalker] --


function spell0_4674(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_4674', 542, 1)
end

function spell1_4674(pUnit, Event) --@Exploit Weakness,n/a--
pUnit:FullCastSpellOnTarget(6595,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4674', 0, 1)
end

function spell2_4674(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(8629,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4674', 4000, 1)
end

function Sorts_4674(pUnit, Event)
local choix_sorts_4674 = math.random(0, 2)
if choix_sorts_4674 == 0 then
pUnit:RegisterEvent('spell0_4674', 1, 1)
end
if choix_sorts_4674 == 1 then
pUnit:RegisterEvent('spell1_4674', 1, 1)
end
if choix_sorts_4674 == 2 then
pUnit:RegisterEvent('spell2_4674', 1, 1)
end
end

function mob4674_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4674', math.random(1500, 3000), 1)
end

function mob4674_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4674_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4674_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4674, 1, 'mob4674_Action')
RegisterUnitEvent(4674, 2, 'mob4674_Leave')
RegisterUnitEvent(4674, 3, 'mob4674_Kill')
RegisterUnitEvent(4674, 4, 'mob4674_Die')
